import React, {useContext} from 'react'
import {BasicLayout} from './BasicLayout/BasicLayout'
import {GlobalStore} from "../context";

const AppLayout = (props) => {
    const context = useContext(GlobalStore)

    return (
        <BasicLayout routeConfig={context.routes}>
            {props.children}
        </BasicLayout>
    )
}

export default AppLayout
